﻿namespace FFF.Test.Entity.Demo
{
    using System;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Domain.Entities;
    using Abp.AutoMapper;
    using FFF.Test.Entity.Demo.View;
    using FFF.Test.Entity.Framework.Entity;

	/// <summary>
    /// 学生表(编辑)
    /// </summary>
	[Table("Demo_StudentEdit")]
    [Display(Name = "学生表(编辑)", Description = "学生表(编辑)")]
    [AutoMapFrom(typeof(ViewDemoStudentEdit))] 
    public partial class DemoStudentEditEntity : BaseEntity<Guid>
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column("StudentGUID")]
        [Display(Name = "学生表(编辑)主键", Description = "学生表(编辑)主键")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public override Guid Id { get; set; }

		/// <summary>
        /// 名称
        /// </summary>
		[Display(Name = "名称", Description = "名称")]
        [Column("StudentName")]
		[StringLength(128)]
        public string StudentName { get; set; }   

		/// <summary>
        /// 年龄
        /// </summary>
		[Display(Name = "年龄", Description = "年龄")]
        [Column("StudentAge")]
        public int StudentAge { get; set; }   

		/// <summary>
        /// 生日
        /// </summary>
		[Display(Name = "生日", Description = "生日")]
        [Column("StudentBirthday")]
        public DateTime? StudentBirthday { get; set; }   

		/// <summary>
        /// 身高
        /// </summary>
		[Display(Name = "身高", Description = "身高")]
        [Column("StudentHeight")]
        public decimal StudentHeight { get; set; }   

		/// <summary>
        /// 是否VIP
        /// </summary>
		[Display(Name = "是否VIP", Description = "是否VIP")]
        [Column("StudentIsVip")]
        public byte StudentIsVip { get; set; }   

		/// <summary>
        /// 学生等级(1,学霸;2,普通;3,学渣)
        /// </summary>
		[Display(Name = "学生等级(1,学霸;2,普通;3,学渣)", Description = "学生等级(1,学霸;2,普通;3,学渣)")]
        [Column("StudentLevel")]
        public DemoStudentEditStudentLevelEnum StudentLevel { get; set; }   

		/// <summary>
        /// 班级GUID
        /// </summary>
		[Display(Name = "班级GUID", Description = "班级GUID")]
        [Column("ClassGUID")]
        public Guid? ClassGUID { get; set; }   

		/// <summary>
        /// 学生描述
        /// </summary>
		[Display(Name = "学生描述", Description = "学生描述")]
        [Column("StudentDesc")]
		[StringLength(9999999)]
        public string StudentDesc { get; set; }   

		/// <summary>
        /// 学生爱好(篮球;足球;羽毛球;跑步)
        /// </summary>
		[Display(Name = "学生爱好(篮球;足球;羽毛球;跑步)", Description = "学生爱好(篮球;足球;羽毛球;跑步)")]
        [Column("StudentFavor")]
		[StringLength(512)]
        public string StudentFavor { get; set; }   

		/// <summary>
        /// 学生头像(上传图片)
        /// </summary>
		[Display(Name = "学生头像(上传图片)", Description = "学生头像(上传图片)")]
        [Column("StudentStudentHeadUrl")]
		[StringLength(512)]
        public string StudentStudentHeadUrl { get; set; }   

		/// <summary>
        /// 学生自传
        /// </summary>
		[Display(Name = "学生自传", Description = "学生自传")]
        [Column("StudentMeRemark")]
		[StringLength(9999999)]
        public string StudentMeRemark { get; set; }   
    }

    /// <summary>
    /// 学生等级(1,学霸;2,普通;3,学渣)枚举
    /// </summary>
    public enum DemoStudentEditStudentLevelEnum
    {
        /// <summary>
        /// 没有值
        /// </summary>
        None = 0,

        /// <summary>
        /// 学霸
        /// </summary>
        学霸 = 1,

        /// <summary>
        /// 普通
        /// </summary>
        普通 = 2,

        /// <summary>
        /// 学渣
        /// </summary>
        学渣 = 3
    }
}
